var vm = new Vue({
    el: '#rrapp',
    data: {
        text: "",
    },
    created: function () {
        $.get(baseURL + "member/selectBaseSetting/license", function (r) {
            vm.text = r.text;
            Vue.nextTick(function () {
                CKEDITOR.replace('textarea',{height: "650px", width: "1800px"});
            });
        });
    },
    methods: {
        updateBaseSetting:function () {
           vm.text = CKEDITOR.instances.textarea.getData()
            $.post(baseURL + "member/updateBaseSetting/license",{"text":vm.text}, function (r) {
                if (r.code == 1) {
                    alert("修改成功");
                } else
                    alert("修改失败");
            });
        }
    },

})